package top.lethelh.jianoa.service;

import cn.hutool.json.JSONObject;
import top.lethelh.jianoa.db.pojo.TbUser;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Set;

/**
 * @author lh
 * @date 2022/1/30 10:43 上午
 * @desc
 */
public interface UserService {
    public int registerUser(String registerCode, String code, String nickname, String photo);
    public Set<String> searchUserPermissions(int userId);
    public Integer login(String code);
    public TbUser searchById(int userId);
    public String searchUserHiredate(int userId);
    public HashMap searchUserSummary(int userId);
    public ArrayList<HashMap> searchUserGroupByDept(String keyword);
    public ArrayList<HashMap> searchMembers(List param);
    public List<HashMap> selectUserPhotoAndName(List param);
    public void insertUser(HashMap param);
    public HashMap searchUserInfo(int userId);
    public int updateUserInfo(HashMap param);
    public void deleteUserById(int id);
    public JSONObject searchUserContactList();
}
